package com.mukefile.pojo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xinke.huang@hand-china.com
 * @version 1.0
 * @date 2021/2/4
 */
public class ResponseData<T> {

    private Integer code;
    private String message;
    private Integer count;
    private List<T> data;

    public ResponseData() {
        this(0,null);
    }

    public ResponseData(Integer count, List<T> data) {
        this(0,"success",count,data);
    }

    public ResponseData(Integer code, String message, Integer count, List<T> data) {
        this.code = code;
        this.message = message;
        this.count = count;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
